/**
 * 在线用户相关接口调用
 */
import request from '@/utils/request.js'

/**
 * 查询分页
 */
export const getList = (current, limit, search) => {
  return request({
    url: '/onlineUser/list',
    method: 'GET',
    params: {
      ...search,
    },
  })
}

/**
 * 用户强退
 */
export const userForceToExit = (id) => {
  return request({
    url: '/onlineUser/' + id,
    method: 'DELETE',
  })
}
